package ktc.cn.ktc_base.entity;

import javax.persistence.*;
import java.util.Objects;

@Entity
@Table(name = "tb_label", schema = "ktc_base", catalog = "")
public class TbLabel {
    private String id;
    private String labelname;
    private String state;
    private Long count;
    private String recommend;
    private Long fans;

    @Id
    @Column(name = "id")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "labelname")
    public String getLabelname() {
        return labelname;
    }

    public void setLabelname(String labelname) {
        this.labelname = labelname;
    }

    @Basic
    @Column(name = "state")
    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    @Basic
    @Column(name = "count")
    public Long getCount() {
        return count;
    }

    public void setCount(Long count) {
        this.count = count;
    }

    @Basic
    @Column(name = "recommend")
    public String getRecommend() {
        return recommend;
    }

    public void setRecommend(String recommend) {
        this.recommend = recommend;
    }

    @Basic
    @Column(name = "fans")
    public Long getFans() {
        return fans;
    }

    public void setFans(Long fans) {
        this.fans = fans;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TbLabel tbLabel = (TbLabel) o;
        return Objects.equals(id, tbLabel.id) &&
                Objects.equals(labelname, tbLabel.labelname) &&
                Objects.equals(state, tbLabel.state) &&
                Objects.equals(count, tbLabel.count) &&
                Objects.equals(recommend, tbLabel.recommend) &&
                Objects.equals(fans, tbLabel.fans);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, labelname, state, count, recommend, fans);
    }

    @Override
    public String toString() {
        return "TbLabel{" +
                "id='" + id + '\'' +
                ", labelname='" + labelname + '\'' +
                ", state='" + state + '\'' +
                ", count=" + count +
                ", recommend='" + recommend + '\'' +
                ", fans=" + fans +
                '}';
    }
}
